package com.txby.dplus.identify;



import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.annotations.DataSource;
import com.txby.dplus.common.annomapper.MybatisBaseDaoCRUD;
import com.txby.dplus.datasources.DataSourceNames;

/**
 * 测试多数据源
 */
@Service
public class DataSourceTestService {
	  @Autowired
	  public MybatisBaseDaoCRUD mBaseDao;

    public List queryUser(String sql){
        return mBaseDao.findBySql(sql, null, null);
    }

//    @DataSource(name = DataSourceNames.SECOND)
    public List queryUser2(String sql){
        return mBaseDao.findBySql(sql, null, null);
    }
}
